#include "UniformSampler.h"
#include <cstdlib>

using namespace std;

UniformSampler::UniformSampler(void)
{
}


UniformSampler::~UniformSampler(void)
{
}

Vector2 UniformSampler::sample()
{
	Vector2 ret;
	ret._x = minX_ + ((float)rand() / RAND_MAX) * widthX_;
	ret._y = minY_ + ((float)rand() / RAND_MAX) * widthY_;
	return ret;
}